#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int m = 0,n=0;
	scanf("%d%d\n", &m,&n);
	int i = 1, j = 1;
	for (i = 1; i<=m; i++)
	{
		printf("%d*%d=%d  ", i, j, i * j);
		printf("\n");
		for (j = 1; j <= n; j++)
		{
			printf("%d*%d=%d  ", i, j, i * j);

		}
	}
	return 0;
}